<?php 
define('ROOT_DIR', dirname(__FILE__));
define('MODULE_DIR', ROOT_DIR . '/module');

define('NODE_ACCESS_PUBLIC', 'public');
define('NODE_ACCESS_PRIVATE', 'private');
define('NODE_ACCESS_POSITION', 'position');

define('ROUTER_ACCESS_PUBLIC', 'public');
define('ROUTER_ACCESS_USER', 'user');
define('ROUTER_ACCESS_POSITION', 'position');
define('ROUTER_ACCESS_PRIVATE', 'private');

define('SITE_LEVEL_SUPER', 'super');
define('SITE_LEVEL_LIMIT', 'limit');

define('KN_HIT_NONE', 100);
define('KN_HIT_NEXT', 101);
define('KN_HIT_PREV', 102);

include ROOT_DIR . '/include/load.php';
include ROOT_DIR . '/include/common.php';

include ROOT_DIR . '/include/db_mysqli.class.php';
include ROOT_DIR . '/include/module.class.php';
include ROOT_DIR . '/include/model.class.php';
include ROOT_DIR . '/include/view.class.php';
include ROOT_DIR . '/include/view_out.class.php';

ini_set('magic_quotes_sybase', 0);

ini_set('magic_quotes_runtime', 0);


ini_set('session.use_cookies', '1');
ini_set('session.use_only_cookies', '1');
ini_set('session.use_trans_sid', '0');
ini_set('session.cache_limiter', 'none');
ini_set('session.cookie_httponly', '1');
ini_set('session.gc_maxlifetime', '100');
  
tos_unregister_GLOBALS();

tos_fix_gpc_magic();


include ROOT_DIR . '/setting.php';
/*if ( function_exists( 'date_default_timezone_set' ) )
    date_default_timezone_set( 'UTC' );
    //date_default_timezone_set( 'Asia/Shanghai' );*/

//tos_load_setting();

?>